package com.dbappsecurity.jsbridge;

import android.app.Application;
import android.util.Log;
import com.tencent.smtt.export.external.TbsCoreSettings;
import com.tencent.smtt.sdk.QbSdk;
import java.util.HashMap;

public class JsLib {

  static public void init(Application application){
    HashMap<String, Object> map = new HashMap<String, Object>();

    map.put(TbsCoreSettings.TBS_SETTINGS_USE_SPEEDY_CLASSLOADER, true);

    QbSdk.initTbsSettings(map);
    QbSdk.initX5Environment(application, new QbSdk.PreInitCallback() {
      @Override
      public void onCoreInitFinished() {
        Log.i("JsLib", "Arirus onCoreInitFinished: ");
      }

      @Override
      public void onViewInitFinished(boolean b) {
        Log.i("JsLib", "Arirus onViewInitFinished: "+b);
      }
    });
  }

}
